import QtQuick 1.1
import org.kde.qtextracomponents 0.1 as QtExtraComponents

Content {
    id: iconContent
    
    property alias icon: iconItem.icon
    
    // minimumWidth     // Unable to set these from here
    // minimumHeight    //
    desiredWidth: iconItem.implicitWidth
    desiredHeight: iconItem.implicitHeight
    
    QtExtraComponents.QIconItem {
        id: iconItem
        
        smooth: true
        
        width: Math.min(parent.width, parent.height)
        height: width
        anchors.horizontalCenter:parent.horizontalCenter
        anchors.verticalCenter:parent.verticalCenter
    }
}